#include <iostream>
#include <vector>
using namespace std;

bool isPrime(int num)
{
    if(num == 2) return true;
    if(num % 2 == 0 || num <= 1) return false;
    for(int i = 3; i * i < num; i += 2)
    {
        if(num % i == 0)
            return false;
    }
    return true;
}

int main()
{
    vector<int> hash(26, 0);
    string pattern;
    cin >> pattern;
    for(const auto& x : pattern)
        hash[x - 'a'] += 1;
    int min_count = 0x3f3f3f3f, max_count = -1;
    for(const auto& x : hash)
    {
        // cout << x << " " << endl;
        if(x > max_count) max_count = x;
        if(x < min_count && x != 0) min_count = x;
    }
    // cout << min_count << " " << max_count << endl;
    int num = max_count - min_count;
    if(isPrime(num))
    {
        cout << "Lucky Word" << endl;
        cout << num << endl;
    }
    else
    {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }
    return 0;
}